#!/bin/bash

if [ -L $0 ] ; then
	EXEC="$(readlink $0)"
else
	EXEC="$0"
fi

DIR="$( cd -L $( dirname "$EXEC" ) && pwd )"

export MAINSERVER='192.168.25.22'
export NODES='192.168.25.40 192.168.25.41'
export JMETERCLIENT='192.168.25.42'

export RUN_MAIN=1
export RUN_NODES=1

export DEFAULT_PORT='15001'

export JAR=camid3-0.3.1-SNAPSHOT-jar-with-dependencies.jar

export CAMID_JAR=$DIR/target/$JAR

export SSH_KEY=scripts/vbox_dsa

export USER=ubuntu
export TARGET_LOCATION=/home/$USER

export TESTCASE='expMiddleware.jmx'

export JMETER_DIR=apache-jmeter-2.9
export JMETER_ROOT=/home/diego/util/jmeter/$JMETER_DIR
export JMETER_OPTS="-n -t $TESTCASE -l expMiddleware.log"

export MVN_OPTS='package assembly:single'

export MGMT_OPTS=''

export JVM_ARGS="-Dcamid.ssh.user=$USER -Dcamid.ssh.key=$TARGET_LOCATION/$SSH_KEY_NAME -Dcamid.main.node=$MAINSERVER -Dcamid.work.nodes=${NODES/\ /:} -Dcamid.port=15001"

